package cn.zjh.basic.service;

import cn.zjh.basic.query.BaseQuery;
import cn.zjh.basic.util.PageList;


import java.util.List;

public interface IBaseService<T> {

    void save (T t);
    void delete (Long id);
    void update (T t);

    List<T> findAll();
    T findOne (Long id);

    Integer queryCount(BaseQuery baseQuery);

    //查询当前页的数据
    PageList<T> queryPage(BaseQuery baseQuery);

    void patchDel(List<Long> ids);

}
